import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

public class text68 {
    public static long l=0;
    public static void fun()
    {
        Thread thread1=new Thread(new Runnable() {
            @Override
            public void run() {
                long i=0;
                for(i=0;i<50_0000_0000L;i++)
                {
                    l++;
                }

            }
        });
        Thread thread2=new Thread(new Runnable() {
            @Override
            public void run() {
                long i=0;
                for(i=0;i<50_0000_0000L;i++)
                {
                    l++;
                }

            }
        });
        long start=System.currentTimeMillis();
        thread1.start();
        thread2.start();
        long end=System.currentTimeMillis();
        System.out.println(end-start);


    }

    public static void main3(String[] args) {
        fun();

    }
    public static void main(String[] args) {
        long a=0;
        long i=0;
        long start=System.currentTimeMillis();
        for(i=0;i<200_0000_0000L;i++)
        {
            a++;
        }
        long end=System.currentTimeMillis();
        System.out.println(end-start);

    }
    public static void main19(String[] args) {
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                //System.out.println(1);
                int i = 0;
                for (i = 0; i < 1000000; i++) {
                    ;
                }
            }
        });
        System.out.println("开始前"+thread.getState());
        thread.start();

            System.out.println("进行中"+thread.getState());
        try {
            thread.join();
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("结束了"+thread.getState());

    }



}
